import ast
a = [1,2];
b = "[[3,4],['cc',6]]";
b=ast.literal_eval(b)
print(type(a))
print(type(b))